Accusoft.BarcodeXpress9.Net
Write a QR Code Barcode
Send Feedback
Barcode Xpress 9 for .Net - User Guide > How To > Create a Barcode > Create a 2D Barcode > Write a QR Code Barcode

Glossary Item Box

Use the code example below as a guideline for writing QR Code barcodes.

C# Example - Basic steps for writing QR Code barcodes using Accusoft.BarcodeXpress.Net Copy Code
//create and unlock the BarcodeXpress component
BarcodeXpress bcx = new BarcodeXpress();
// The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName("YourSolutionName");
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
// The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensing");
//Create the writer QRCode class
WriterQRCode qrCode = new WriterQRCode(bcx);
// Set the text value
qrCode.BarcodeValue = "QR Code Value";
//call Create and get resulting image
if (imageXView1.Image != null)
   imageXView.Image.Dispose();
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, qrCode.Create(), true);
// dispose of the writer QR Code and barcode component
qrCode.Dispose();
bcx.Dispose();
©2013. Accusoft Corporation. All Rights Reserved.